package com.csi.jf.crucible.ptservice.model;

import com.chinasofti.ro.bizframework.core.data.validation.IValidator;
import com.chinasofti.ro.bizframework.core.orm.entity.Model;

import java.sql.Timestamp;

/**
 * 
 * @author BizFoundation
 * @version 1.0
 * @since 1.0
 */
public class Sonarservices extends Model implements IValidator {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4916271183786947979L;
	// Fields    
	private Long id; 
	private Long projectId; 
	private String serviceName; 
	private Long creator; 
	private Timestamp createTime; 
	private Long updater; 
	private Timestamp updateTime; 
	private Long serviceId; 
	private Integer status; 
	private Long codePackageId; 
		
	//default constructor
    public Sonarservices() {
    	super();
    }
    
    // Property accessors
	public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
    	this.id = id;
    }
    
	public Long getProjectId() {
        return this.projectId;
    }
    
    public void setProjectId(Long projectId) {
    	this.firePropertyChange("projectId", this.projectId, projectId);
    	this.projectId = projectId;
    }
    
	public String getServiceName() {
        return this.serviceName;
    }
    
    public void setServiceName(String serviceName) {
    	this.firePropertyChange("serviceName", this.serviceName, serviceName);
    	this.serviceName = serviceName;
    }
    
	public Long getCreator() {
        return this.creator;
    }
    
    public void setCreator(Long creator) {
    	this.firePropertyChange("creator", this.creator, creator);
    	this.creator = creator;
    }
    
	public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
    	this.firePropertyChange("createTime", this.createTime, createTime);
    	this.createTime = createTime;
    }
    
	public Long getUpdater() {
        return this.updater;
    }
    
    public void setUpdater(Long updater) {
    	this.firePropertyChange("updater", this.updater, updater);
    	this.updater = updater;
    }
    
	public Timestamp getUpdateTime() {
        return this.updateTime;
    }
    
    public void setUpdateTime(Timestamp updateTime) {
    	this.firePropertyChange("updateTime", this.updateTime, updateTime);
    	this.updateTime = updateTime;
    }
    
	public Long getServiceId() {
        return this.serviceId;
    }
    
    public void setServiceId(Long serviceId) {
    	this.firePropertyChange("serviceId", this.serviceId, serviceId);
    	this.serviceId = serviceId;
    }
    
	public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
    	this.firePropertyChange("status", this.status, status);
    	this.status = status;
    }
    
	public Long getCodePackageId() {
        return this.codePackageId;
    }
    
    public void setCodePackageId(Long codePackageId) {
    	this.firePropertyChange("codePackageId", this.codePackageId, codePackageId);
    	this.codePackageId = codePackageId;
    }
    
   	public boolean validate(Object arg0) {
		//Sonarservices sonarservices = (Sonarservices)arg0;
		//Validation.required("sonarservices.id",sonarservices.getId());
		return true;
	}
}